import request from '@/utils/request'

// 查询贴子-收藏列表
export function listPostCollect(query) {
  return request({
    url: '/forum/postCollect/list',
    method: 'get',
    params: query
  })
}

// 查询贴子-收藏详细
export function getPostCollect(id) {
  return request({
    url: '/forum/postCollect/' + id,
    method: 'get'
  })
}

// 新增贴子-收藏
export function addPostCollect(data) {
  return request({
    url: '/forum/postCollect',
    method: 'post',
    data: data
  })
}

// 修改贴子-收藏
export function updatePostCollect(data) {
  return request({
    url: '/forum/postCollect',
    method: 'put',
    data: data
  })
}

// 删除贴子-收藏
export function delPostCollect(id) {
  return request({
    url: '/forum/postCollect/' + id,
    method: 'delete'
  })
}
